import java.util.*;
public class Main1
{
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);
        int arr[] = new int[3];

        for(int i =0;i<3;i++)
        {
            arr[i] = cin.nextInt();
        }
        Arrays.sort(arr);

        for(int i =0;i<3;i++)
        {
            System.out.printf("%d",arr[i]);
            if(i!=2)
                System.out.printf("->");
        }

        cin.close();
    }
}
